/*
 *  dna_otalib.h -- provide dna-system firmware OTA method library.
 *  
 *  ORIGINAL AUTHOR: Xu Chun (chun.xu@broadlink.com.cn)
 *
 *  Copyright (c) 2016 Broadlink Corporation
 */

#ifndef __DNA_OTALIB_H
#define __DNA_OTALIB_H

/*
*  Parsing HTML document.
*  Reference format (default, when content_parse set to NULL):
*  ---------------------------------
*  Version num (\r\n)
*  Download URL (EOF)
*  ---------------------------------
*  Example:
*  ---------------------------------
*  28
*  http://cloud.broadlink.com.cn/XXX.bin
*  ---------------------------------
*/
int simple_http_get_ota_info(
        const char * request_url, dna_ota_remote_info_t * remote_info,
        int (* content_parse)(const char * content, dna_ota_remote_info_t * remote_info));

#endif

